package kr.hkit.coffeeframework.uicomp;

import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JTextField;
import java.awt.GridLayout;

public class Coffee_InputPanel extends JPanel {
	private JTextField tf;
	private JLabel lbl;

	/**
	 * Create the panel.
	 */
	public Coffee_InputPanel() {

		initialize();
	}
	public Coffee_InputPanel(String lblStr) {

		initialize();
		lbl.setText(lblStr);
	}
	private void initialize() {
		setLayout(new GridLayout(0, 2, 0, 0));
		
		lbl = new JLabel("label");
		add(lbl);
		
		tf = new JTextField();
		add(tf);
		tf.setColumns(10);
	}
	
	public JTextField getTF(){
		return tf;
	}
	
	public void setTfTxt(String txt){
		this.tf.setText(txt);
	}
}
